import java.rmi.*;
import java.rmi.server.*;
/**
 * Remote class for the "Hello, World!" example.
 */
public class Hello extends UnicastRemoteObject implements HelloInterface{
	private String message;
	/**
	 * Construct a remote object
	 * @param msg the message of the remote object, such as "Hello, World!".
	 * @exception RemoteException if the object handle cannot be constructed.
	 */
	public Hello (String msg) throws RemoteException{
		message = msg;
	}
	/**
	 * Implementation of the remotely invokable method.
	 * @return the message of the remote object, such as "Hello, World!"
	 * @exception RemoteException if the remote invocation fails
	 */
	public String say() throws RemoteException{
		return message;
	}
}
